<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
        <li><a href="adminIndex"><span class="am-icon-home"></span> 首页</a></li>
        
        <c:forEach items="${menuBean.menus }" var="firstMenu">
        	<li class="admin-parent">
         	 	<a class="am-cf" data-am-collapse="{target: '#Menu${firstMenu.id }'}"><span class="${firstMenu.icon }"></span> ${firstMenu.name }<span class="am-icon-angle-right am-fr am-margin-right"></span></a>
	        	<ul class="am-list am-collapse admin-sidebar-sub" id="Menu${firstMenu.id}">
        			<c:forEach items="${menuBean.secondMenu }" var="secondMenuNow">
       					<c:if test="${secondMenuNow.parentId == firstMenu.id }">
			           		 <li><a href="javascript:rightSideLoad('<%=request.getContextPath()%>/${secondMenuNow.url }');" id="leftMenu_a${secondMenuNow.id }" class="am-cf"><span class="${secondMenuNow.icon }"></span> ${secondMenuNow.name }</a></li>
       					</c:if>
        			</c:forEach>
				</ul>
        	</li>
        </c:forEach>
        
      </ul>

      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-bookmark"></span> 公告</p>
          <p>时光静好，与君语；细水流年，与君同。—— Amaze UI</p>
        </div>
      </div>

      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-tag"></span> wiki</p>
          <p>本系统项目地址：<a href="http://git.oschina.net/yangjianquan/Power" target="_blank">点击</a></p>
        </div>
      </div>
    </div>
  </div>